﻿namespace HYBY.Task.Repository.Dapper {
  /// <summary>
  /// 程序启动必须执行--数据库连接初始化，SQL模板初始化
  /// </summary>
  public class DapperInit {
    private static bool _isInitialized = false;

    public static void Initialize() {
      DbConnectionHelper.Init();
      SqlStatementManager.Init();
      _isInitialized = true;
    }

    public static bool IsInitialized() {
      return _isInitialized;
    }
  }
}
